package pl.edu.mimuw.irs.rcp.persistence.descriptor;

import java.io.File;

import pl.edu.mimuw.irs.rcp.persistence.IExternalResource;

public class ExternalFileDescriptor implements IExternalResource {

	// *** Attributes

	private File file;
	private IExternalResource parent;
	public File getFile() {
		return file;
	}
	@Override
	public Object getParent() {
		return parent;
	}
	@Override
	public String getName() {
		return file.getName();
	}
	
	// *** Constructors
	
	public ExternalFileDescriptor(IExternalResource parent, File file) {
		this.file = file;
		this.parent = parent;
	}
	
	// *** Methods
	
	@Override
	public Object[] getChildren() {
		return new Object[0];
	}


}
